﻿using System.Collections.Generic;
using System.ComponentModel;
using System.Web.Services;
using KPIS.GERP.GFMS.IBLL;
using KPIS.GERP.GFMS.BLL;
using KPIS.GERP.GFMS.MODEL;

namespace KPIS.GERP.GFMS.SERVICE
{
    /// <summary>
    /// Summary description for BGM_ProjectOperationExpenseRate
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class BGM_ProjectOperationExpenseRate : System.Web.Services.WebService
    {
        IBLL_BGM_ProjectOperationExpenseRate bll = new B_BGM_ProjectOperationExpenseRate();

        [WebMethod]
        public List<M_BGM_ProjectOperationExpenseRate> GetFull(string bgm_proj_oper_exp_seq
            , string exp_rate_seq)
        {
            return (List<M_BGM_ProjectOperationExpenseRate>)bll.GetFull(bgm_proj_oper_exp_seq
                , exp_rate_seq);
        }

        [WebMethod]
        public List<M_BGM_ProjectOperationExpenseRate> GetFull2(string bgm_proj_exp_seq
            , string exp_rate_seq)
        {
            return (List<M_BGM_ProjectOperationExpenseRate>)bll.GetFull2(bgm_proj_exp_seq
                , exp_rate_seq);
        }

        [WebMethod]
        public M_BGM_ProjectOperationExpenseRate GetInfo(string seq)
        {
            return (M_BGM_ProjectOperationExpenseRate)bll.GetInfo(seq);
        }

        //[WebMethod]
        //public string SelectRecentInsertedRoleSeq()
        //{
        //    return bll.SelectRecentInsertedRoleSeq();
        //}

        [WebMethod]
        public string Insert(M_BGM_ProjectOperationExpenseRate info)
        {
            return bll.Insert(info);
        }

        [WebMethod]
        public void Update(M_BGM_ProjectOperationExpenseRate info)
        {
            bll.Update(info);
        }

        [WebMethod]
        public void Delete(M_BGM_ProjectOperationExpenseRate info)
        {
            bll.Delete(info);
        }
    }
}
